package com.ldzl.service;

import com.ldzl.pojo.CkStorageLocation;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 风止
* @description 针对表【ck_storage_location(库区表)】的数据库操作Service
* @createDate 2025-07-10 17:18:31
*/
public interface CkStorageLocationService extends IService<CkStorageLocation> {

    /**
     * 查询所有库区
     * @param location
     * @return
     */
    List<CkStorageLocation> findLocation(CkStorageLocation location);

    /**
     * 新增/修改 库区
     * @param location
     * @return
     */
    int saveLocation(CkStorageLocation location);

    /**
     * 删除指定仓库下的库区
     * @param warehouse_id
     * @return
     */
    boolean delete_warehouse_id(Long warehouse_id);

    /**
     * 删除库区
     * @param location_id
     * @return
     */
    boolean deleteLocation(Long location_id);


    /**
     * 批量删除库区
     * @param ids
     * @return
     */
    String deleteLocation_batch( List<Long> ids);
}
